package com.taotao.protal.pojo;
/****
 * 购物车商品实体
 * @author Administrator
 *
 */
public class CartItem {

	private long id;
	private String title;
	private Integer num;
	private long price;
	private String image;
	private String[] images;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public long getPrice() {
		return price;
	}
	public void setPrice(long price) {
		this.price = price;
	}
	public String getImage() {
		
		return image;
	}
	public String[] getImages() {
		String[] images = image.split(",");
		return images;
	}
	public void setImage(String image) {
		this.image = image;
	}
	//这个属性可以不要,页面取的时候直接用data.image,不要用data.image[0]
	public void setImages(String[] images) {
		this.image = images[0];
	}
	
	
	
}